package com.moshang.blog.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.moshang.blog.entity.vo.TableField;
import com.moshang.blog.entity.vo.TableVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @program: blog
 * @description: ${description}
 * @author: xieweiwei
 * @create: 2018-10-11 10:24
 **/
@Mapper
public interface TableMapper {
    List<TableVO> listPage(@Param("searchKey")String searchKey,@Param("searchValue")String searchValue, Page<TableVO> objectPage);

    Integer getTableCount();

    List<TableVO> findList(@Param("params") Map<String, Object> params);

    TableVO selectDetailTable(@Param("name") String name);

    List<TableField> selectFields(@Param("map") Map<String, Object> map);

    Map<String, String> queryTable(String tableName);

    List<Map<String, String>> queryColumns(String tableName);
}
